// components/JsonViewer.tsx
import React from "react";
import { Card } from "@/components/ui/card";

export function JsonViewer({ json }: { json: unknown }) {
  return (
    <Card className="bg-gray-50 p-4 overflow-auto text-sm font-mono">
      <pre className="pre-wrap">{JSON.stringify(json, null, 2)}</pre>
    </Card>
  );
}
